package com.gec.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gec.dto.DishDto;
import com.gec.dto.SetmealDto;
import com.gec.entity.Setmeal;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author : [chenxys]
 * @version : [v1.0]
 * @createTime : [2022/7/5 17:27]
 */
public interface SetmealService extends IService<Setmeal> {
    IPage<SetmealDto> selectByCondition(IPage<Setmeal> page,
                                        String params);

    SetmealDto getOneById(Long id);

    void updateWithDish(SetmealDto setmealDto);

    void updateWithCode(Integer code, Long[] ids);

    void saveWithDish(SetmealDto setmealDto);

    void removeWithDish(List<Long> ids);

    List<Setmeal> listBySetmeal(Setmeal setmeal);

    List<DishDto> dishList(Long setmealId);
}
